import requests

# # 创建 session对象
# session = requests.Session()
#
# # 发送 验证码请求 get
# session.get(url="https://hmshop-test.itheima.net/index.php?m=Home&c=User&a=verify&r=0.1540697473473922")
#
# # 发送 登录请求 post
# resp = session.post(url="https://hmshop-test.itheima.net/index.php?m=Home&c=User&a=do_login&t=0.7453775185672258",
#                     data={"username": "13122223333", "password": "123456", "verify_code": "8888"})
# # 打印响应结果
# print("登录结果：", resp.json())

resp = requests.post(url="http://192.168.5.132:8000/api/sys/login",
                     json={"mobile": "13800000002", "password": "123456"})

print(resp.json())
